import {ApiMaster} from '@/common/apiMaster';

let MenuApi = new ApiMaster('/api/backstage/forums/menu');

/**
 * 批量修改sort
 * @param sorts {[{id:String, sort: Number}]}
 * @returns {Promise<import('axios').AxiosResponse<any>>}
 */
MenuApi.sort = function (sorts) {
	return this.request().post(this.getUrl('sort'), {sorts})
}

export default MenuApi